package main.Q2501_2600;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Q2551_2560 {
	public static void main(String[] args) {
		System.out.println("Question2551：");
		System.out.println("Question2552：");
		System.out.println("Question2553：分割数组中数字的数位");
		System.out.println("Question2554：");
		System.out.println("Question2555：");
		System.out.println("Question2556：");
		System.out.println("Question2557：");
		System.out.println("Question2558：");
		System.out.println("Question2559：");
		System.out.println("Question2560：");
	}
}

class Question2553 {
	public int[] separateDigits(int[] nums) {
		List<Integer> resultList = new ArrayList<>();
		for (int num : nums) {
			String n = String.valueOf(num);
			for (int i = 0; i < n.length(); i++) {
				resultList.add(n.charAt(i) - '0');
			}
		}
		int[] result = new int[resultList.size()];
		for (int i = 0; i < resultList.size(); i++) {
			result[i] = resultList.get(i);
		}
		return result;
	}
}